Public Class PortParameterControl

    <System.ComponentModel.Browsable(True)> _
    Public Property PortName() As String
        Get
            Return Me.lbl_porttitle.Text
        End Get
        Set(ByVal value As String)
            Me.lbl_porttitle.Text = value
        End Set
    End Property

    <System.ComponentModel.Browsable(True)> _
    Public Property IsPortActive() As Boolean
        Get
            Return Me.chkPortAct.Checked
        End Get
        Set(ByVal value As Boolean)
            Me.chkPortAct.Checked = value
        End Set
    End Property

    <System.ComponentModel.Browsable(True)> _
    Public Property IsAlarmActive() As Boolean
        Get
            Return Me.chkAlarmAct.Checked
        End Get
        Set(ByVal value As Boolean)
            Me.chkAlarmAct.Checked = value
        End Set
    End Property

    Private Sub chkPortAct_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkPortAct.CheckedChanged
        If Me.chkPortAct.Checked = True Then
            Me.chkAlarmAct.Enabled = True
        Else
            Me.chkAlarmAct.Enabled = False
            Me.chkAlarmAct.Checked = False
        End If
    End Sub

End Class
